from tests import logResults
from tests import RandomAgent, AgentEnglish, AgentBond

# Testing Englishs' skills
logResults(AgentEnglish(), RandomAgent(), "English_vs_Random.output", "battle") # Dima

# Testing Improvements of Alpha-Beta
#logResults(AgentEnglish(), AgentBond(), "English_vs_Bond.output", "battle")     # Alex

# Testing utility parameters affects.

Colonel =   AgentEnglish(   1   ,   5   ,   7   ,   9   ,   3) #default
Face =      AgentEnglish(   3   ,   6   ,   4   ,   2   ,   6)
BA =        AgentEnglish(   0   ,   3   ,   6   ,  10   ,   2)
Murdock =   AgentEnglish(  0.5  ,   4   ,   4   ,   4   ,   4)

names={1:"Colonel",2:"Face", 3:"BA", 4:"Murdock"}

A_Team = [Colonel, Face, BA, Murdock]
for first in xrange(0,4):
    for second in xrange(first, 4):
        filename=names[first]+"_vs_"+names[second]+".output"
        logResults(A_Team[first], A_Team[second], filename, "tournament")